﻿using System;

namespace my_console
{
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle rectangle = new Rectangle(4, 5);
            Console.WriteLine("Rectangle Area: " + rectangle.CalculateArea());
            Console.WriteLine("Is Rectangle Valid: " + rectangle.IsValid());

            Square square = new Square(4);
            Console.WriteLine("Square Area: " + square.CalculateArea());
            Console.WriteLine("Is Square Valid: " + square.IsValid());

            Triangle triangle = new Triangle(4, 3, 5);
            Console.WriteLine("Triangle Area: " + triangle.CalculateArea());
            Console.WriteLine("Is Triangle Valid: " + triangle.IsValid());
        }
    }

}
